package viewModel;

import de.dhbw.horb.inf2013.vierFarbenProblem.model.Model;
import de.dhbw.horb.inf2013.vierFarbenProblem.model.datatypes.Vertex;
import de.dhbw.horb.inf2013.vierFarbenProblem.model.datatypes.VertexNotSetException;

public class TestModel extends Model {
	public boolean vertexExist(int id){
		return this.graph.containsVertex(id);
	}
	
	public boolean areNeighbors(int id1, int id2) throws VertexNotSetException {
		Vertex vertex1 = graph.getVertex(id1);
		return vertex1.isNeighbor(id2);
	}
}
